package com.hspedu.homework.homework08;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/24
 * @time 19:42
 */
public class CheckingAccount extends BankAccount{
    public CheckingAccount(double initialBalance) {
        super(initialBalance);
    }

    @Override
    public void withdraw(double amount) {
        super.withdraw(amount + 1);
    }

    @Override
    public void deposit(double amount) {
        super.deposit(amount - 1);
    }
}
